define(function (require) {
	require('echarts-pie');
	require(['plupload','plupload.queue','plupload.i18n'], function () { 
        
   });
	require('ui-upload');

    var app = require('app');
    app.useModule('ui.upload');

    app.controller('gis_importCtrl', ['$scope','$rootScope', function($scope,$rootScope){
		
		$rootScope.onFileUpload=function(fileInfo){
			if(fileInfo.status){
				$.messager.alert("系统提示","导入成功");
				$scope.uploaddata=null;
				$rootScope.loadData("gisdataimport");
			}else{
				$.messager.alert("系统提示","导入失败");
			}
		}
	}]);
});